package org.xiaoyu.rpc;

import org.xiaoyu.rpc.common.extension.annotations.SPI;
import org.xiaoyu.rpc.common.url.URL;
import org.xiaoyu.rpc.remoting.packet.Invocation;

import java.util.List;

/**
 * Created By Have
 * 2021/7/14 15:35
 */
@SPI("random")
public interface Loadbalancer {
    URL loadBalance(List<URL> urls, Invocation invocation);
}
